package com.lovo.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @title
 * @author: luo
 * @date: 2020/11/17 10:46
 */
@Data
@Component
@PropertySource("classpath:jdbc.properties")
public class JdbcProperties {
    @Value("${jdbc.url}")
    private String url;
    @Value("${jdbc.driver}")
    private String driver;
    @Value("${jdbc.user}")
    private String user;
    @Value("${jdbc.pwd}")
    private String pwd;

}
